import "../css/topicTotal.scss"
import '../css/common/header.scss'
import '../css/common/footer.scss'

if (module.hot) { module.hot.accept() } // 实现热更新

setTimeout(()=>{
    console.log('topicTotal');
}, 1000);


(function(){
    $('.nav ul li a').removeClass('active');
    $('.nav ul li a').eq(4).addClass('active');

    $('.hot-game').find($('dd')).mouseover(function(){
        $('.hot-game').find($('dd')).removeClass('hover');
        $(this).addClass('hover');
    })

    $('.item').mouseover(function(){
        $(this).find('img').css('transform','scale(1.2)');
        $('.item').mouseout(function(){
            $(this).find('img').css('transform','scale(1)');
        })
    })

    layui.use(['laypage'], function(){
        var laypage = layui.laypage;

        laypage.render({
            elem: 'page',
            count: 1000,
            limit: 24,
            last: '末页',
            prev: '上一页',
            next: '下一页',
            theme: '#ff8900'
        });
    })
})();